<?php
namespace Minhsang\ModelBundle\Entity;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="ContentCategory")
 * @author sangdm
 */
class ContentCategory extends BaseEntity{
	/**
	 * @ORM\Column(type="integer",nullable=true)
	 * @var integer
	 */
	protected $parent_id;
   
    /**
     * Set parent_id
     *
     * @param integer $parentId
     * @return ContentCategory
     */
    public function setParentId($parentId)
    {
        $this->parent_id = $parentId;

        return $this;
    }

    /**
     * Get parent_id
     *
     * @return integer 
     */
    public function getParentId()
    {
        return $this->parent_id;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return ContentCategory
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set description
     *
     * @param string $description
     * @return ContentCategory
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description
     *
     * @return string 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set date_create
     *
     * @param \DateTime $dateCreate
     * @return ContentCategory
     */
    public function setDateCreate($dateCreate)
    {
        $this->date_create = $dateCreate;

        return $this;
    }

    /**
     * Get date_create
     *
     * @return \DateTime 
     */
    public function getDateCreate()
    {
        return $this->date_create;
    }

    /**
     * Set status
     *
     * @param integer $status
     * @return ContentCategory
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return integer 
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set owner
     *
     * @param integer $owner
     * @return ContentCategory
     */
    public function setOwner($owner)
    {
        $this->owner = $owner;

        return $this;
    }

    /**
     * Get owner
     *
     * @return integer 
     */
    public function getOwner()
    {
        return $this->owner;
    }

    /**
     * Set modified_by
     *
     * @param integer $modifiedBy
     * @return ContentCategory
     */
    public function setModifiedBy($modifiedBy)
    {
        $this->modified_by = $modifiedBy;

        return $this;
    }

    /**
     * Get modified_by
     *
     * @return integer 
     */
    public function getModifiedBy()
    {
        return $this->modified_by;
    }

    /**
     * Set modified_date
     *
     * @param \DateTime $modifiedDate
     * @return ContentCategory
     */
    public function setModifiedDate($modifiedDate)
    {
        $this->modified_date = $modifiedDate;

        return $this;
    }

    /**
     * Get modified_date
     *
     * @return \DateTime 
     */
    public function getModifiedDate()
    {
        return $this->modified_date;
    }

    /**
     * Set ordering
     *
     * @param integer $ordering
     * @return ContentCategory
     */
    public function setOrdering($ordering)
    {
        $this->ordering = $ordering;

        return $this;
    }

    /**
     * Get ordering
     *
     * @return integer 
     */
    public function getOrdering()
    {
        return $this->ordering;
    }
    /**
     * @var integer
     */
    private $id;

    /**
     * @var string
     */
    private $name;

    /**
     * @var string
     */
    private $description;

    /**
     * @var \DateTime
     */
    private $date_create;

    /**
     * @var integer
     */
    private $status;

    /**
     * @var integer
     */
    private $owner;

    /**
     * @var integer
     */
    private $modified_by;

    /**
     * @var \DateTime
     */
    private $modified_date;

    /**
     * @var integer
     */
    private $ordering;


}
